﻿DROP TABLE IF EXISTS `open_supplier`;
CREATE TABLE `open_supplier` (
  `supplier_id` int(8) NOT NULL AUTO_INCREMENT,
  `code` varchar(30) NOT NULL,
  `name` varchar(30) NOT NULL,
  `address` varchar(30) DEFAULT NULL,
  `email` varchar(30) NOT NULL,
  `tel` varchar(30) DEFAULT NULL,
  `fax` varchar(30) DEFAULT NULL,
  `discount` varchar(30) NOT NULL,
  `type` smallint(3) NOT NULL DEFAULT '0',
  `finance_type` smallint(3) NOT NULL DEFAULT '0',
  PRIMARY KEY (`supplier_id`),
  KEY `type` (`type`),
  KEY `finance_type` (`finance_type`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;